package yns.springboot.guide.demo.configure;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

//根据环境不同修改application.properties中的spring.profiles.active属性选择对应的配置
@Component
public class Configure3 {

	@Value("${db.name}")
	private String name;
	
	@Value("${db.pwd}")
	private String pwd;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

}
